package student.aistar.design.template2;

public abstract class ExamTemplate {
    public void test01(){
        System.out.println("1. Java好学吗?");
        System.out.println("A. 好学   B. 非常好学");
        System.out.println("答案是:"+answer01());
    }
    public void test02(){
        System.out.println("2. Mysql好学吗?");
        System.out.println("A. 好学   B. 非常好学");
        System.out.println("答案是:"+answer02());
    }
    public void test03(){
        System.out.println("3. JDBC好学吗?");
        System.out.println("A. 好学   B. 非常好学");
        System.out.println("答案是:"+answer03());
    }

    public abstract String answer01();
    public abstract String answer02();
    public abstract String answer03();

    public final void execute(){
        test01();
        test02();
        test03();
    }
}
